package com.company.J1_3;

import java.util.Scanner;

public class aeiou {
    public static void main(String[] args) {
        int a,e,i,o,u;
        Scanner scanner =new Scanner(System.in);
        System.out.print("请输入一串字符串:");
        String str="";
        if(scanner.hasNext()){
            str= scanner.next();
        }
        scanner.close();

        a=e=i=o=u=0;
        for (int index=0;index<str.length();index++){
            char s=str.charAt(index);
            switch (s){
                case 'a':a++; break;
                case 'e':e++; break;
                case 'i':i++; break;
                case 'o':o++;break;
                case 'u':u++;break;
            }
        }
        System.out.println("a:"+a);
        System.out.println("e:"+e);
        System.out.println("i:"+i);
        System.out.println("o:"+o);
        System.out.println("u:"+u);
    }
}
